package core.comunication;

import java.io.Serializable;
import java.net.InetAddress;

import core.descriptors.TaskDescriptor;


/**
 * 
 * E' un bean utilizzato per accodare i messaggi che si scambiano client e
 * server nel caso di invocazione remota della enqueue del tasckdescriptor.
 * @author Vincenzo Merlo, Scuderi Giovanni Luca, Paolo Giuffrida
 *
 */
public class MSGTDEnqueue implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 523151936008711818L;
	private InetAddress addr;
	private TaskDescriptor td;
	private long timeCurrent;
	
	public MSGTDEnqueue(InetAddress addr, TaskDescriptor td, long timeCurrent) {
		this.addr = addr;
		this.td = td;
		this.timeCurrent = timeCurrent;
	}

	public InetAddress getAddr() {
		return addr;
	}

	public TaskDescriptor getTd() {
		return td;
	}

	public long getTimeCurrent() {
		return timeCurrent;
	}

	public void setAddr(InetAddress addr) {
		this.addr = addr;
	}

	public void setTd(TaskDescriptor td) {
		this.td = td;
	}

	public void setTimeCurrent(long timeCurrent) {
		this.timeCurrent = timeCurrent;
	}

	
}